from django.contrib import admin

from .models import LearnRecommend, RecommendTpye

# Register your models here.
@admin.register(LearnRecommend)
class LearnRecommend(admin.ModelAdmin):
    list_display = ['name', 'url', 'abstract']
    search_fields = ['name', 'abstract']
    list_filter = ['type']

@admin.register(RecommendTpye)
class LearnRecommend(admin.ModelAdmin):
    list_display = ['type']